#--coding:utf-8 --
# author: chang time:2021/7/7
import os

def size(path):
    size_num=0
    for i in os.listdir(path):
        new_path=os.path.join(path,i)
        if os.path.isfile(new_path):
            size_num+=os.path.getsize(new_path)
        else:
            size(new_path)
    return size_num



